﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;

namespace VinEmiCalculator
{
    public class Plugin:IVinPlugins.IVinPlugin
    {
        public string PluginName { get; set; }
        public Image PluginIcon { get; set; }


        public Plugin()
        { PluginName = "VinEmiCalculator"; }       
    
        
        public void Show(Form ParentWindow)
        {
            EMI_Calculator emicalc = EMI_Calculator.GetInstance();
            emicalc.MdiParent = (Form)ParentWindow;
            emicalc.Show();
        }


        private IVinPlugins.IPluginHost m_Host;        		
        public IVinPlugins.IPluginHost Host 
        {
            get { return m_Host; }
            set { m_Host = value; m_Host.Register(this); }
        }
         
    }
}
